home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-02-20 | 5.3 KB | 182 lines | [TEXT/MPS ] |
- #ifndef __APPLEEVENTS__
- #include <AppleEvents.h>
- #endif
-
- #ifndef __MENUS__
- #include <Menus.h>
- #endif
-
- #ifndef __STANDARDFILE__
- #include <StandardFile.h>
- #endif
-
- /************** AppleEvents.c **************/
-
- void DoHighLevelEvent(EventRecord *event);
- OSErr GetTargetInfo(AEAddressDesc targetDesc, StringPtr zone, StringPtr machine, StringPtr application);
- void InitAppleEvents(void);
- OSErr MakeTarget(AEAddressDesc *target, Boolean sendDirect, short replyMode, Str255 prompt, Str255 applListLabel,PPCFilterProcPtr portFilter);
- Boolean MissedAnyParameters(AppleEvent *message);
- /* 2/20/91 pvh - Pascal based functions! So must pass by reference in THINK C! */
- pascal OSErr DoAEOpenApplication(AppleEvent *message, AppleEvent *reply, long refcon);
- pascal OSErr DoAEOpenDocuments(AppleEvent *message, AppleEvent *reply, long refcon);
- pascal OSErr DoAEPrintDocuments(AppleEvent *message, AppleEvent *reply, long refcon);
- pascal OSErr DoAEQuitApplication(AppleEvent *message, AppleEvent *reply, long refcon);
- OSErr OpenDocEventHandler(AppleEvent *message, AppleEvent *reply, short mode);
-
-
-
- /************** AppleEvents2.c **************/
-
- void InitCustomAppleEvents(void);
- OSErr SendConnect(FileRecHndl frHndl);
- OSErr SendMessage(FileRecHndl frHndl, short messageType);
- WindowPtr GetAEWindow(long gameID_0, long gameID_1);
- pascal Boolean MyIdleProc(EventRecord *event, long *sleep, RgnHandle *mouseRgn);
- void NotifyCancel(void);
- void NotifyUser(void);
- void SetOpponentType(FileRecHndl frHndl, short newOpponentType);
- pascal Boolean AEPortFilter(LocationNamePtr locationName, PortInfoPtr thePortInfo);
-
-
-
- /************** DoCursor.c **************/
-
- void DoCursor(Boolean isAppleEvent, long classID);
- void DoSetCursor(Cursor *cursor);
-
-
-
- /************** DoEvent.c **************/
-
- void DoActivate(WindowPtr window, Boolean becomingActive);
- void DoContentClick(WindowPtr window, EventRecord *event);
- void DoEvent(EventRecord *event);
- void DoUpdate(WindowPtr window);
-
-
-
- /************** EventLoop.c **************/
-
- void EventLoop(void);
-
-
-
- /************** File.c **************/
-
- OSErr AppDisposeDocument(FileRecHndl frHndl);
- Boolean AppDocumentDirty(FileRecHndl frHndl);
- OSErr AppNewDocument(FileRecHndl *returnHndl);
- OSErr AppOpenDocument(FileRecHndl *result, FSSpecPtr fileToOpen, char permission);
- OSErr AppSaveDocument(FileRecHndl frHndl, WindowPtr window, short saveMode);
- void ConvertOldToNewSFReply(SFReply *oldReply, StandardFileReply *newReply);
- OSErr Create_OpenFile(FSSpec *file, short *refNum);
- Boolean DisplayGetFile(StandardFileReply *reply);
- Boolean DisplayPutFile(StandardFileReply *reply);
- void IncNewFileNum(Boolean flag);
-
-
-
- /************** File2.c **************/
-
- void AppFreeDocument(FileRecHndl frHndl);
- OSErr AppInitDocument(FileRecHndl frHndl);
- OSErr AppReadDocument(FileRecHndl frHndl);
- OSErr AppWriteDocument(FileRecHndl frHndl);
- OSErr AppDuplicateDocument(FileRecHndl oldFrHndl, FileRecHndl *newFrHndl);
-
-
-
- /************** Help.c **************/
-
- void DynamicBalloonHelp(void);
-
-
-
- /************** IdleTasks.c **************/
-
- void DoIdleTasks(void);
- pascal Boolean MyIdleProc(EventRecord *event, long *sleep, RgnHandle *mouseRgn);
- void NotifyCancel(void);
- void NotifyUser(void);
-
-
-
- /************** Init.c **************/
-
- void Initialize(void);
- void StartDocuments(void);
-
-
- /************** Menu.c **************/
-
- void AdjustMenus(void);
- void DoMenuCommand(long menuResult);
- void EnableOrDisableItem(MenuHandle menu, short item, Boolean enable);
-
-
-
- /************** Print.c **************/
-
- OSErr AppPrintDocument(FileRecHndl frHndl, Boolean jobDlg, Boolean firstJob);
- OSErr PresentStyleDialog(FileRecHndl frHndl);
-
-
-
- /************** Setup.c **************/
-
- void DoArrangeBoard(FileRecHndl frHndl, Point clickLoc);
- void DrawPalette(FileRecHndl frHndl);
- Rect PaletteRect(void);
-
-
-
- /************** Sound.c **************/
-
- OSErr RecordSound(FileRecHndl frHndl);
- Boolean SoundInputAvaliable(void);
-
-
-
- /************** Start.c **************/
-
- void main(void);
-
-
-
- /************** Utils.c **************/
-
- void appendi2cstr(char *cstr, short i);
- short appendi2pstr(char *pstr, short i);
- short i2cstr(char *cstr, short i);
- void i2pstr(char *pstr, short i);
- pascal Boolean keyEquivFilter(DialogPtr dlg, EventRecord *event, short *item);
- void pstrcat(char *d, char *s);
- void pstrcpy(char *d, char *s);
- void OffsetControl(ControlHandle ctl, short dx, short dy);
- void DoDrawGrowIcon(WindowPtr window, Boolean horLine, Boolean verLine);
- void DoDrawControls(WindowPtr window, Boolean scrollBarsOnly);
- void DoDraw1Control(ControlHandle ctl, Boolean scrollBarsOnly);
-
-
- /************** Window.c **************/
-
- OSErr AppNewWindow(FileRecHndl frHndl, WindowPtr *retWindow);
- void AppNewWindowTitle(WindowPtr window);
- Boolean AppWindowDirty(WindowPtr window);
- Boolean DisposeAllWindows(void);
- Boolean DisposeOneWindow(WindowPtr window, short saveMode);
- WindowPtr SetFilePort(FileRecHndl frHndl);
-
-
- /************** Window2.c **************/
-
- Boolean Algebraic(FileRecHndl frHndl, short printMoveNum, short gameIndex, StringPtr pstr);
- OSErr AppNewWindowControls(FileRecHndl frHndl, WindowPtr window);
- void DrawTime(FileRecHndl frHndl);
- void ImageBoardLines(short hOffset, short vOffset);
- void ImageDocument(FileRecHndl frHndl);
- void ImageMoveList(FileRecHndl frHndl, Rect theInk, short hOffset);
-
-
-